home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / TUTORIAL.BIN / StatusBar.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-12-16  |  1.2 KB  |  44 lines

  1. package symantec.itools.awt;
  2.  
  3. import java.awt.BorderLayout;
  4. import java.awt.Color;
  5. import java.awt.Component;
  6. import java.awt.Label;
  7. import java.awt.LayoutManager;
  8.  
  9. public class StatusBar extends BorderPanel {
  10.    protected Label text;
  11.    protected Color textColor;
  12.  
  13.    public StatusBar() {
  14.       super.setLayout(new BorderLayout());
  15.       ((BorderPanel)this).add("Center", this.text = new Label());
  16.    }
  17.  
  18.    public void setStatusText(String var1) {
  19.       this.text.setText(var1);
  20.       ((Component)this).invalidate();
  21.    }
  22.  
  23.    public String getStatusText() {
  24.       return this.text.getText();
  25.    }
  26.  
  27.    public void setStatusTextColor(Color var1) {
  28.       this.textColor = var1;
  29.       this.text.setForeground(var1);
  30.       ((Component)this).invalidate();
  31.    }
  32.  
  33.    public Color getStatusTextColor() {
  34.       return this.textColor;
  35.    }
  36.  
  37.    public void setLayout(LayoutManager var1) {
  38.    }
  39.  
  40.    public void clear() {
  41.       this.setStatusText("");
  42.    }
  43. }
  44.